﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using libTho;

public partial class Procedure : System.Web.UI.Page
{
    string CodeSearch ;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string QuiTrinhId = ((Request.QueryString["Id"] == null) ? "-1" : Request.QueryString["Id"].ToString());
            if (QuiTrinhId == "-1")
            {
                divHS_QT.InnerHtml = VTMC.GetHS_QuiTrinh();
            }
            else
            {
                divTitle.InnerHtml = VTMC.GetTitleQuiTrinh(int.Parse(QuiTrinhId));
                divHS_QT.InnerHtml = VTMC.GetHS_QuiTrinhDetails(int.Parse(QuiTrinhId));
            }            
            
        }
    }
}
